package cn.ctodb.cms.service.dto;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;
import javax.persistence.Lob;


/**
 * A DTO for the CmsTxt entity.
 */
public class CmsTxtDTO implements Serializable {

    private Long id;

    private Integer page;

    @Lob
    private String txt;


    private Long cmsChannelId;
    
    private Long cmsContentId;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }
    public String getTxt() {
        return txt;
    }

    public void setTxt(String txt) {
        this.txt = txt;
    }

    public Long getCmsChannelId() {
        return cmsChannelId;
    }

    public void setCmsChannelId(Long cmsChannelId) {
        this.cmsChannelId = cmsChannelId;
    }

    public Long getCmsContentId() {
        return cmsContentId;
    }

    public void setCmsContentId(Long cmsContentId) {
        this.cmsContentId = cmsContentId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        CmsTxtDTO cmsTxtDTO = (CmsTxtDTO) o;

        if ( ! Objects.equals(id, cmsTxtDTO.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "CmsTxtDTO{" +
            "id=" + id +
            ", page='" + page + "'" +
            ", txt='" + txt + "'" +
            '}';
    }
}
